home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 1
/
LIGHT-ROM 1 (Amiga Library Services)(1994).iso
/
ffdisks
/
d885.lha
/
False
/
other
/
split.f
< prev
next >
Wrap
Text File
|
1993-07-16
|
631b
|
29 lines
{split.f}
^a:[a;32=][^a:]# { read operand for split: front/back }
a;'f=a;'b=|^32=&$ { a has to be 'f' of 'b' followed by a space }
[
{ read number in b }
0b:^
[c:'0 c;>~'91+c;>&]
[b;10*b:c;'0-b;+b:^]
#
{ number read in b }
0c:
a;'f=
[ [^$d:1_=~c;b;=~&][c;1+c:d;,]#
]?
a;'b=
[ [^$d:1_=~c;b;=~][c;1+c:]#
[^$d:1_=~][d;,]#
]?
]?
~[ {not right syntax }
"split: Wrong arguments.
SYNTAX: Split f|b number <filename_in >filename_out
f|b stands for what to put in filename_out: Front or Back
number stands for where to split the file.
" ]?